﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TwitterBobby
{
    public class ChannelDTO
    {
        public int ChannelID { get; set; }
        public string ChannelName { get; set; }

        public static ChannelDTO CreateFromChannel(Channel channel)
        {
            ChannelDTO result = new ChannelDTO();
            result.ChannelID = channel.ChannelID;
            result.ChannelName = channel.ChannelName;
            return result;
        }

        public Channel ToChannel()
        {
            Channel result = new Channel();
            result.ChannelID = this.ChannelID;
            result.ChannelName = this.ChannelName;
            return result;
        }
    }
}